//package com.example.rbac.mq.rabbitMqConfig;
//
//
//import org.springframework.amqp.core.Binding;
//import org.springframework.amqp.core.BindingBuilder;
//import org.springframework.amqp.core.FanoutExchange;
//import org.springframework.amqp.core.Queue;
//import org.springframework.amqp.rabbit.annotation.EnableRabbit;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
////@Configuration
////@EnableRabbit
//public class Config {
//    @Bean
//    public Queue pc(){
//        return new Queue("pc");
//    }
//
//    @Bean
//    FanoutExchange pcFanoutExchange(){
//        return new FanoutExchange("pcFanoutExchange");
//    }
//
//
//    @Bean
//    Binding bindingExchangePc(Queue pc, FanoutExchange pcFanoutExchange){
//        return BindingBuilder.bind(pc).to(pcFanoutExchange);
//    }
//
//    @Bean
//    public Queue mobile(){
//        return new Queue("mobile");
//    }
//
//    @Bean
//    FanoutExchange mobileFanoutExchange(){
//        return new FanoutExchange("mobileFanoutExchange");
//    }
//
//    @Bean
//    Binding bindingExchangeMobile(Queue mobile, FanoutExchange mobileFanoutExchange){
//        return BindingBuilder.bind(mobile).to(mobileFanoutExchange);
//    }
//
//    @Bean
//    public Queue admin(){
//        return new Queue("admin");
//    }
//
//    @Bean
//    FanoutExchange adminFanoutExchange(){
//        return new FanoutExchange("adminFanoutExchange");
//    }
//
//    @Bean
//    Binding bindingExchangeAdmin(Queue admin, FanoutExchange adminFanoutExchange){
//        return BindingBuilder.bind(admin).to(adminFanoutExchange);
//    }
//}
